Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(avoidance): fix a bug regarding the nearest search #5575

Conversation

yuki-takagi-66
Copy link
Contributor

@yuki-takagi-66 yuki-takagi-66 commented Nov 14, 2023

Description

This PR fix a bug regarding the nearest search in the function extendBackwardLength()
This function requires two pose which are appropriately near to the current ego pose.
The first one is denoted by orig_ego_idx and shown in the figure as the blue arrow, the other one is dented by prev_ego_idx and shown in the figure as the red arrow.
The code so far failure to find prev_ego_idx appropriately and this PR fix this bug.

image

This PR is re-opened PR from #5574 by the author's mistaken force push

Tests performed

psim tests and the tier4 internal test were performed in success.

Effects on system behavior

This PR enables to the system generates avoidance path appropriately on the curved reference paths

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Nov 14, 2023
@yuki-takagi-66 yuki-takagi-66 changed the title Fix/avoidance extend backward length fix(avoidance): fix a bug regarding the nearest search Nov 14, 2023
@yuki-takagi-66 yuki-takagi-66 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Nov 14, 2023
@yuki-takagi-66 yuki-takagi-66 marked this pull request as ready for review November 14, 2023 06:13
Copy link

codecov bot commented Nov 14, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (a84c43b) 15.26% compared to head (055712a) 15.23%.
Report is 13 commits behind head on main.

Files Patch % Lines
...er/src/scene_module/avoidance/avoidance_module.cpp 0.00% 1 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5575      +/-   ##
==========================================
- Coverage   15.26%   15.23%   -0.04%     
==========================================
  Files        1713     1713              
  Lines      118192   118762     +570     
  Branches    37797    38189     +392     
==========================================
+ Hits        18047    18090      +43     
- Misses      79595    80070     +475     
- Partials    20550    20602      +52     
Flag Coverage Δ *Carryforward flag
differential 12.67% <0.00%> (?)
total 15.26% <ø> (+<0.01%) ⬆️ Carriedforward from a84c43b

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@satoshi-ota satoshi-ota self-assigned this Nov 14, 2023
Copy link
Contributor

@satoshi-ota satoshi-ota left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirmed it worked well in Psim.
LGTM 👍 Thanks.

@yuki-takagi-66 yuki-takagi-66 merged commit d4d0804 into autowarefoundation:main Nov 14, 2023
34 of 38 checks passed
@yuki-takagi-66 yuki-takagi-66 deleted the fix/avoidance-extendBackwardLength branch November 14, 2023 07:35
yuki-takagi-66 added a commit to tier4/autoware.universe that referenced this pull request Nov 14, 2023
…ation#5575)

* fix a bug regarding nearest search

---------

Signed-off-by: Yuki Takagi <[email protected]>
tkimura4 added a commit to tier4/autoware.universe that referenced this pull request Nov 14, 2023
fix(avoidance): fix a bug regarding the nearest search (autowarefoundation#5575)
santosh-sanku pushed a commit to Interplai/autoware.universe that referenced this pull request Nov 14, 2023
…ation#5575)

* fix a bug regarding nearest search

---------

Signed-off-by: Yuki Takagi <[email protected]>
Signed-off-by: santosh-interplai <[email protected]>
santosh-sanku pushed a commit to Interplai/autoware.universe that referenced this pull request Nov 14, 2023
…ation#5575)

* fix a bug regarding nearest search

---------

Signed-off-by: Yuki Takagi <[email protected]>
Signed-off-by: santosh-interplai <[email protected]>
takayuki5168 pushed a commit to tier4/autoware.universe that referenced this pull request Nov 22, 2023
…ation#5575)

* fix a bug regarding nearest search

---------

Signed-off-by: Yuki Takagi <[email protected]>
@yuntianyi-chen
Copy link
Contributor

yuntianyi-chen commented Oct 21, 2024

Hi, I plan to reproduce this bug. May I know what psim tests and the tier4 internal tests were used here? Thanks! @yuki-takagi-66 @satoshi-ota

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:planning Route planning, decision-making, and navigation. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants